using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableWantedDamageRankDao:DaoBase<TableWantedDamageRank>
    {
        public override void AddPrimaryIndex(TableWantedDamageRank model)
        {
            cachePrimary[model.id.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableWantedDamageRank.txt";
        }

        protected override TableWantedDamageRank ParseRowData(string[] rowData)
        {
            TableWantedDamageRank data = new TableWantedDamageRank();

            if (string.IsNullOrEmpty(rowData[0]))
            {
                data.id = 0;
            }
            else
            {
                data.id = int.Parse(rowData[0]);
            }
			data.DamageRank = rowData [1];
			data.DamageRankReward = rowData [2];

            return data;
        }



    }

}
